Hi
Yea ive run into a problem again...
What is the right way to check if something is already in an array and if it isnt , add it , and if it is , dont
My try was something like
with things likeCode:test local.print: level.test[level.num] = local.print for (local.i = 1; local.i <= level.test.size; local.i++) { if(local.print != level.test[local.i]) { println(local.print) level.num++ } } end
waitthread global/test::test "Print1"
waitthread global/test::test "Print2"
waitthread global/test::test "Print1"
and level.num = 1 to start with
That was my guess at first but its nowhere close lol it prints it each time even if i have the same local.print already in the array
So whats the right way to do it lol my mind just isnt in the game tonight
Thanks , im sure you guys can just quickly tell me where i went wrong lol



Reply With Quote

